package com.osi.mes.qm.base.constants;

public interface IBasicConstants {
	public static final String UNIT_DETECT_FREQUENCE = "次/年";
	public static final String DISABLE_EQU = "停用";
	public static final String SCRAPPED_EQU = "报废";
	public static final String NORMAL_EQU = "正常";
	
	public static final int NOT_EXIST_EQUIPMENT = 0;
	public static final int SCRAPPED_EQUIPMENT = 1;
	public static final int DISABLE_EQUIPMENT = 2;
	public static final int NOT_EXIST_PLAN = 3;
	public static final int EXIST_PLAN = 4;
	
	// 计划的状态
	public static final int PLAN_NORMAL = 0;
	public static final int PLAN_DISABLE = 1;
	public static final int PLAN_SCRAPPED = 2;
	
	// 检验项目
    public static final int CHK_ITEM_MICROBE_TYPE = 0;
	public static final int CHK_ITEM_CHEMICAL_PHYSICAL_TYPE = 1;
	public static final int CHK_ITEM_BBQ_ASSEMTN_TYPE = 2;
	public static final int CHK_ITEM_ENVIROMENT_TYPE = 3;
	
	//FTP配置
	public static final String FTP_LIST_CONFIG = "osi_ftp_config";
    
	// 检查项的状态
	public static final int WAITING_CONFIRM_EFFECTIVE = 0;
	public static final int CONFIRM_IN_EFFECTIVE = 1;
	public static final int WAITING_CONFIRM_DELETE = 2;
	
	// GMP检查结果
	public static final int GMP_CHK_RESULT_OK = 0;
	public static final int GMP_CHK_RESULT_NEED_IMPROVE = 1;
	public static final int GMP_CHK_RESULT_NOT = 2;
	
	public static final String GMP_CHK_RESULT_DESC_OK = "合格";
	public static final String GMP_CHK_RESULT_DESC_NEED_IMPROVE = "需要改进";
	public static final String GMP_CHK_RESULT_DESC_NOT = "不合格";
	
	// GMP检查结果审核
	public static final boolean GMP_CHK_RESULT_AUDIT_OK = true;
	public static final boolean GMP_CHK_RESULT_AUDIT_NOT = false;
	
	//GMP检查结果导出到Excel 结果
	public static final int EXPORT_EXCEL_GMP_CHK_NO_DATA = 0;
	public static final int EXPORT_EXCEL_GMP_CHK_SUCC = 1;
	public static final int EXPORT_EXCEL_GMP_CHK_ERROR = 2;
	
	//GMP导出的查询条件
	public static final String GMP_MESSAGE_NAME = "osi_base_QMGMPChk";
	public static final String GMP_MESSAGE_SEARCH_TIME = "SEARCH_TIME";
	public static final String GMP_MESSAGE_SEARCH_PL = "SEARCH_PL";
	public static final String GMP_MESSAGE_SEARCH_WC = "SEARCH_WC";
	
	//GMP message name
	public static final String GMP_CHK_MESSAGE = "osi_base_QMGMPChk";
	public static final String GMP_CHK_MESSAGE_ID_OK = "CHK_RESULT_OK";
	public static final String GMP_CHK_MESSAGE_ID_NOT = "CHK_RESULT_NOT";
	public static final String GMP_CHK_MESSAGE_ID_IMPROVE = "CHK_RESULT_NEED_IMPROVE";
	
	//产品检查项的种类
	public static final int EASY_LOOSE_GOOD_ITEM = 0;
	public static final int BROUGHT_TO_WORKSHOP_ITEM = 1;
	public static final int FRAGILE_ITEM = 2;
	public static final int BEF_PRODUCE_EQU_CHK_ITEM = 3;
	
	
	//烧烤评估的类型
	public static final String  BBQ_ASSM_OUTWARD = "外观";
	public static final String  BBQ_ASSM_ORGANIZATION_TASTE = "组织/口感";
	public static final String  BBQ_ASSM_FLAVOR = "风味";
	
	//检验项目
	public static final String CHK_ITEM_MICROBE_ID = "MICROBE_CHK";
	public static final String CHK_ITEM_CHEMICAL_PHYSICAL_ID = "PHY_CHE_CHK";
	public static final String CHK_ITEM_BBQ_ASSEMTN_ID = "BBQ_ASSE_CHK";
	public static final String CHK_ITEM_ENVIROMENT_ID = "ENVIROMENT_CHK";
	
	//检查结果显示
	public static final String CHK_RESULT_OK = "合格";
	public static final String CHK_RESULT_NOT = "不合格";
	public static final String CHK_RESULT_EMPTY = "未检验";
	public static final String CHK_RESULT_NOT_APP = "不适用";
	public static final String CHK_RESULT_YES = "是";
	public static final String CHK_RESULT_NO = "否";
	
	public static final String STRING_CONNECTOR = ",";
	
	//取样检验的导出查询条件
	public static final String MESSAGE_SAMPLE_CHK = "QM_SamplingChk";
	public static final String MESSAGE_SAMPLE_SEARCH_START_TIME = "SEARCH_START_TIME";
	public static final String MESSAGE_SAMPLE_SEARCH_END_TIME = "SEARCH_END_TIME";
	public static final String MESSAGE_SAMPLE_SEARCH_SAMPLE_TYPE = "SEARCH_SAMPLE_TYPE";
	
	//取样检验登记的状态
	public static final int SAMPLE_WATING_CONFIRM = 0;
	public static final int SAMPLE_CONFIRMED = 1;
	// 状态对应的Message 
	public static final String SAMPLE_RESULT_MSG = "QM_SamplingChk";
	public static final String SAMPLE_NO_CONFIRM_MSG_ID = "SAMPLE_STATE_WAIT_CONFIRM";
	public static final String SAMPLE_CONFIRMED_MSG_ID = "SAMPLE_STATE_CONFIRMED";
	public static final String SAMPLE_CHK_RESULT_OK = "SAMPLE_CHK_RESULT_OK";
	public static final String SAMPLE_CHK_RESULT_NOT = "SAMPLE_CHK_RESULT_NOT";
	public static final String SAMPLE_CHK_RESULT_EMPTY = "SAMPLE_CHK_RESULT_EMPTY";
	
	
	//取样检验的类型
	public static final int ONLINE_SAMPLE_REC = 0;
	public static final int MATERIAL_PROD_SAMPLE_REC = 1;
	
	//质量设备台账
	public static final String QTY_REC_MSG_NAME = "QM_EquQtyRec";
	public static final String QTY_REC_EQU_TYPE_LIST_NAME = "osi_base_QMQtyEquType";
	public static final String QTY_REC_EQU_STATE_LIST_NAME = "osi_base_QMEquState";
	
	//烧烤评估的照相窗口
	public static final String BBQ_ASS_WIN_NAME = "BBQ_ASS_CAMERA";
	public static final String CAMERA_IN = "CAMERA_IN";
	public static final String CAMERA_OUT = "CAMARA_OUT";
	public static final String CAMERA_UP = "CAMARA_UP";
	public static final String CAMERA_DOWN = "CAMERA_DOWN";
	public static final String CAMERA_LEFT = "CAMERA_LEFT";
	public static final String CAMERA_RIGHT = "CAMERA_RIGHT";
	public static final String CAMERA_ROL = "CAMERA_ROL";
	public static final String CAMERA_ROR = "CAMERA_ROR"; 
	public static final String CAMERA_GRAB = "CAMERA_GRAB";
	public static final String CAMERA_GRAB_PIC_FAILED = "GRAB_PIC_FAILED";
	
	public static final String CAMERA_GRAB_PIC_SUCC = "CAMERA_GRAB_PIC_SUCC";
	public static final String CAMERA_GRAB_PIC = "CAMERA_GRAB_PIC";
	public static final String CAMERA_NO_EQU = "CAMERA_NO_EQU";
	
	public static final String CAMERA_PIC_TYPE = ".jpg";
	
	//MES通知WMS的消息格式
	public static final int CHANGE = 5;
	public static final int RETURN = 6;
	public static final int REWORK = 7;
	public static final int DESTORY = 8;
	public static final int RECEIPT = 98;
	public static final int NORMAL = 99;
	

	
}
